Page({
  onLoad({ point, building }) {
    this.fake(point, building)

  },
  fake(point, building) {
    // 随机房间号
    const size = Math.floor(Math.random() * 5) + 4
    const rooms =[]
    for (let i = 0; i < size; i++) {

      const floor = Math.floor(Math.random() * 19) + 1
      const no = Math.floor(Math.random() * 2) + 1
      const room = [floor, 0, no].join('')
      if(rooms.includes(room)) continue
      rooms.push(room)
      console.log(rooms);
      
    }
    this.setData({point, building,rooms})

  }
})